﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="EditAtl.aspx.cs" Inherits="Cn.Cellula.Website.Admin.Content.Atl.EditAtl"
    Title="编辑模板属性" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link type="text/css" rel="Stylesheet" href="/Cellula_Client/controls/JskitControls.css" />
    <script type="text/javascript" src="/jskit.org/model/controls/JskitRichDropDownList.js"></script>
    <script type="text/javascript">
        var jrddlCategory = new JskitRichDropDownList("jrddlCategory");
        var jrddlCategoryRef = new JskitRichDropDownList("jrddlCategoryRef");
        function PageOnLoad() {
            jrddlCategory.deployTree(fixId("txt_CategoryName"), fixId("hid_CategoryKey"), "Ws/_Category.aspx?ok=&rk=");
            jrddlCategoryRef.deployTree(fixId("txt_RefCategoryName"), fixId("hid_RefCategoryKey"), "Ws/_Category.aspx?ok=&rk=");
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPH_PageTitle" runat="server">
    编辑属性
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="CPH_MainBody" runat="server">
    <div class="action_bar">
        <asp:Button ID="btn_save" runat="server" Text="保存" OnClick="btn_save_Click" />
        <input type="reset" value="重置" />
        <input type="button" onclick="jskitBulter.redirect('Admin/Content/Atl/List.aspx?cid=<%=Request.QueryString["cid"] %>')"
            value="取消" />
    </div>
    <fieldset>
        <legend>属性信息</legend>
        <table border="0" cellpadding="0" cellspacing="0" class="edit_form">
            <tr>
                <td class="edit_form_item_title">
                    <span class="required">隶属分类：</span>
                </td>
                <td class="edit_form_item_content" colspan="3">
                    <asp:TextBox runat="server" ID="txt_CategoryName"></asp:TextBox>
                    <asp:HiddenField runat="server" ID="hid_CategoryKey" />
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    <span class="required">属性名称：</span>
                </td>
                <td class="edit_form_item_content" colspan="3">
                    <asp:TextBox runat="server" ID="txt_AtlName"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    <span class="required">表单类型：</span>
                </td>
                <td class="edit_form_item_content">
                    <asp:DropDownList runat="server" ID="ddl_FieldType">
                    </asp:DropDownList>
                </td>
                <td class="edit_form_item_title">
                    外联对象：
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_RefCategoryName"></asp:TextBox>
                    <asp:HiddenField runat="server" ID="hid_RefCategoryKey" />
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    排序值：
                </td>
                <td class="edit_form_item_content" colspan="3">
                    <asp:TextBox runat="server" ID="txt_OrderNumber" Text="0"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    缺省值：
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_DefaultVaue"></asp:TextBox>
                </td>
                <td class="edit_form_item_title">
                    字符长度：
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_Length"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    写权限：
                </td>
                <td class="edit_form_item_content">
                    <asp:DropDownList runat="server" ID="ddl_EditableRole" DataTextField="RoleName" DataValueField="RoleKey">
                    </asp:DropDownList>
                </td>
                <td class="edit_form_item_title">
                    用于查询：
                </td>
                <td class="edit_form_item_content">
                    <asp:RadioButtonList runat="server" ID="ral_Queriable" RepeatDirection="Horizontal">
                        <asp:ListItem Value="1" Text="是"></asp:ListItem>
                        <asp:ListItem Value="0" Text="否" Selected="True"></asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    读权限：
                </td>
                <td class="edit_form_item_content">
                    <asp:DropDownList runat="server" ID="ddl_VisiableRole" DataTextField="RoleName" DataValueField="RoleKey">
                    </asp:DropDownList>
                </td>
                <td class="edit_form_item_title">
                    用于报表：
                </td>
                <td class="edit_form_item_content">
                    <asp:RadioButtonList runat="server" ID="rbl_Report" RepeatDirection="Horizontal">
                        <asp:ListItem Value="1" Text="是"></asp:ListItem>
                        <asp:ListItem Value="0" Text="否" Selected="True"></asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    计算规则：
                </td>
                <td class="edit_form_item_content" colspan="3">
                    <asp:DropDownList runat="server" ID="ddl_CountRule"></asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    描述：
                </td>
                <td class="edit_form_item_content" colspan="3">
                    <asp:TextBox runat="server" ID="txt_AltDesc" Width="400px" Height="50px" TextMode="MultiLine"></asp:TextBox>
                </td>
            </tr>
        </table>
    </fieldset>
</asp:Content>
